import request, { type NetResponse } from '@/utils/request'

/**
 * 登录
 * @param params
 * @returns {Promise<{ [key:string]:any }>}
 */
export function login(params: any) {
  return request<NetResponse>({
    url: '/api/user/login',
    method: 'get',
    params,
  })
}

/**
 * 获取用户基本信息
 * @param params
 * @returns NetResponse
 */
export function info(params: any) {
  return request<NetResponse>({
    url: '/api/user/info',
    method: 'get',
    params,
  })
}
